<template>
  <div id="app">

    <router-view></router-view>
  </div>
</template>
<script>

import request from '@/utils/request'
import { setToken } from '@/utils/storage'
export default ({
  data () {
    return {

    }
  },
  async created () {
    const res = await request.post('/auth/login', {
      username: 'admin8',
      password: 'admin'
    })
    console.log(res)

    setToken(res.data.data.token)
  }
})
</script>

<style lang="scss">

</style>
